package com.atguigu.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Entity;
import javax.persistence.Table;

//图书类
@Data
@AllArgsConstructor
@NoArgsConstructor
@Entity
@Table(name = "t_book")
public class Book {
    private Integer id ;
    private String bookName ;
    private String author ;
    private Double price ;
    private Integer saleCount ;//销量
    private Integer bookCount ;//库存量
    private String bookImg ;//图书封面
    private Integer status ;//图书的状态。例如，0：正常  -1：下架
 }
